admin: (cleanup) Add internal API to find a deployment given an index
authorColin Walters <walters@verbum.org>
Fri, 16 Jan 2015 17:57:39 +0000 (12:57 -0500)
committerColin Walters <walters@verbum.org>
Mon, 19 Jan 2015 18:45:11 +0000 (13:45 -0500)
commit0eac91a253d0c2451eb4c10ddd63bc172509939d
tree324c44483825aa4776142ce8d945c3e48d65e3e2
parentce957f864907e665591e02455ed87f70d3ebe930
admin: (cleanup) Add internal API to find a deployment given an index

At some point, we might want to expose a uniform way to refer
to deployments by an index.  At the moment undeploy is the only
command that does.

I plan to introduce another command which optionally takes an index,
so prepare a helper function for this.
src/ostree/ot-admin-builtin-undeploy.c
src/ostree/ot-admin-functions.c
src/ostree/ot-admin-functions.h